set(APP_NAME cat)

project(${APP_NAME})

add_definitions(-DUNICODE -D_UNICODE)

set(${APP_NAME}_SOURCES
	${${APP_NAME}_PLATFORM_SOURCES}
	cat-app.cpp
	cat-main.cpp
	cat-bake-end.cpp
	cat-server.cpp
)
set(${APP_NAME}_HEADERS
	${${APP_NAME}_PLATFORM_HEADERS}
	cat-app.hpp
	cat-bake-end.hpp
	cat-server.hpp
)

add_executable (${APP_NAME} 
	${${APP_NAME}_SOURCES} 
	${${APP_NAME}_HEADERS}
	Resource/bongocat.ico
	Resource/cat.rc
	Resource/Resource.h
)
target_link_libraries(${APP_NAME}
	libcat
	liblive2d
)

set_target_properties(${APP_NAME} PROPERTIES FOLDER "${APP_NAME}")
set_target_properties(${APP_NAME} PROPERTIES VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/rundir/bin/Debug")
